$OpenBSD: patch-plasma_generic_applets_systemtray_CMakeLists_txt,v 1.2 2014/01/28 14:49:26 zhuk Exp $
Fix build.
--- plasma/generic/applets/systemtray/CMakeLists.txt.orig	Thu Jan 24 01:46:45 2013
+++ plasma/generic/applets/systemtray/CMakeLists.txt	Wed Feb  6 23:29:56 2013
@@ -39,12 +39,12 @@ kde4_add_ui_files(systemtray_SRCS
                   ui/visibleitems.ui)
 
 include(${QT_USE_FILE})
-include (CheckLibraryExists)
-check_library_exists (Xss XScreenSaverQueryInfo "" HAVE_LIBXSS)
+find_package(X11)
+if(X11_Xscreensaver_LIB)
+    set(IDLE_DETECTION_LIB "Xss")
+endif(X11_Xscreensaver_LIB)
+
 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
-IF (HAVE_LIBXSS)
-   SET (IDLE_DETECTION_LIB "Xss")
-ENDIF (HAVE_LIBXSS)
 
 kde4_add_plugin(plasma_applet_systemtray ${systemtray_SRCS})
 include_directories(${CMAKE_SOURCE_DIR})
